/*
 * @Author: your name
 * @Date: 2020-11-10 00:18:35
 * @LastEditTime: 2020-11-10 10:50:18
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \233c:\Users\86185\Desktop\app\musice\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import footer from '@/components/footerbar.vue'
import account from '@/views/account.vue'
import discover from '@/views/discover.vue'
import friend from '@/views/friend.vue'
import mymusic from '@/views/mymusic.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/account',
  },
  {
    path: '/account',
    name: 'account',
    components:{
      default:account,
      'Footerbar':footer
  },
  },
  {
    path: '/discover',
    name: 'discover',
    components:{
      default:discover,
      'Footerbar':footer
  },
  },
  {
    path: '/friend',
    name: 'friend',
    components:{
      default:friend,
      'Footerbar':footer
  },
  },
  {
    path: '/mymusic',
    name: 'mymusic',
    components:{
      default:mymusic,
      'Footerbar':footer
  },
  },
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
